<template>
  <article-list
    :url="url"
    :params="bindParams"
  />
</template>
<script>
import ArticleList from '@/components/articleList/index'
export default {
  components: {
    ArticleList
  },
  props: {
    params: {
      type: Object,
      default: null
    }
  },
  computed: {
    bindParams () {
      if (this.params) {
        return this.params.params
      }
      return null
    },
    url () {
      if (this.params) {
        return this.params.route
      }
      return this.uri
    }
  },
  data () {
    return {
      uri: '/cms/article/index'
    }
  }
}
</script>

<style lang="less">
</style>
